finding points of intersection of two graphs